/*
 * @Author: your name
 * @Date: 2021-10-21 15:10:26
 * @LastEditTime: 2021-12-27 15:17:56
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \macc.admin.vue\src\views\monitor\overview\globalnetwork\colums.js
 */
import { i18nRender } from '@/locales';
const colums = [
  {
    title: i18nRender('groupNetwork.netTitle'),
    align: 'center',
    dataIndex: 'name',
    key: 'name',
    width: '30%',
    scopedSlots: { customRender: 'projectName' },
  },
  {
    title: i18nRender('groupNetwork.warnTitle'),
    align: 'center',
    dataIndex: 'warnCount',
    key: 'warnCount',
    scopedSlots: { customRender: 'warn' },
  },
  {
    title: i18nRender('groupNetwork.userTitle'),
    align: 'center',
    dataIndex: 'staCount',
    key: 'staCount',
    scopedSlots: { customRender: 'sta' },
  },
  {
    title: 'AP',
    align: 'center',
    dataIndex: 'ap',
    key: 'ap',
    scopedSlots: { customRender: 'ap' },
  },
  {
    title: 'AC',
    align: 'center',
    dataIndex: 'ac',
    key: 'ac',
    sorter: true,
    scopedSlots: { customRender: 'ac' },
  },
  {
    title: i18nRender('groupNetwork.passTitle'),
    align: 'center',
    dataIndex: 'gateway',
    key: 'gateway',
    sorter: true,
    scopedSlots: { customRender: 'gateway' },
  },
  {
    title: i18nRender('groupNetwork.switchTitle'),
    align: 'center',
    dataIndex: 'switch',
    key: 'switch',
    sorter: true,
    scopedSlots: { customRender: 'switch' },
  },
  {
    title: i18nRender('groupNetwork.routeTitle'),
    align: 'center',
    dataIndex: 'wr',
    key: 'wr',
    sorter: true,
    scopedSlots: { customRender: 'wr' },
  },
  {
    title: i18nRender('groupNetwork.brigeTitle'),
    align: 'center',
    dataIndex: 'bridge',
    key: 'bridge',
    sorter: true,
    scopedSlots: { customRender: 'bridge' },
  },
  {
    title: i18nRender('groupNetwork.fireTitle'),
    align: 'center',
    dataIndex: 'firewall',
    key: 'firewall',
    sorter: true,
    scopedSlots: { customRender: 'firewall' },
  },
  {
    title: i18nRender('groupNetwork.unknewTitle'),
    align: 'center',
    dataIndex: 'totalUnknown',
    key: 'totalUnknown',
    scopedSlots: { customRender: 'unknown' },
  },
  {
    title: i18nRender('groupNetwork.opTitle'),
    align: 'center',
    width: 200,
    dataIndex: 'action',
    key: 'action',
    scopedSlots: { customRender: 'action' },
    fixed: 'right',
  },
];

const localKey = 'GLOBAL_NETWOEK_SETTING';

export { colums, localKey };
